package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import freemarker.template.TemplateException;
import io.minio.errors.*;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface ArticleService extends IService<ApArticle> {
    ResponseResult load(ArticleHomeDto homeDto);

    ResponseResult loadnew(ArticleHomeDto homeDto);

    ResponseResult loadmore(ArticleHomeDto homeDto);

    ResponseResult saveArticle(ArticleDto articleDto) throws IOException, TemplateException, InvalidResponseException, InvalidKeyException, NoSuchAlgorithmException, ServerException, ErrorResponseException, XmlParserException, InvalidBucketNameException, InsufficientDataException, InternalException;

    ResponseResult findOneById(long articleId);

    ResponseResult findAll();

    ResponseResult loadArticleBehavior(ArticleInfoDto dto);

    ResponseResult selectFiveDaysArticle();

}
